package net.supcmdr.dnd5e.ui;

import java.awt.Dimension;

import javax.swing.JPanel;

import net.supcmdr.dnd5e.ui.subpanels.character.CombatStatsPanel;
import net.supcmdr.dnd5e.ui.subpanels.character.PrimaryStatsPanel;
import net.supcmdr.dnd5e.ui.subpanels.character.SavingThrowsPanel;
import net.supcmdr.dnd5e.ui.subpanels.character.SkillsPanel;

@SuppressWarnings("serial")
public class CharacterPanel extends JPanel {


	public CharacterPanel(){
		
		System.out.println("Initializing CharacterPanel");
		
		PrimaryStatsPanel primaryStatsPanel = new PrimaryStatsPanel();
		SkillsPanel skillsPanel = new SkillsPanel();
		
		add(primaryStatsPanel);
		add(skillsPanel);
		
		JPanel panel = new JPanel();
		panel.setBorder(null);
		panel.setPreferredSize(new Dimension(325, 645));
		add(panel);
		panel.setLayout(null);
		
		SavingThrowsPanel savingThrowsPanel = new SavingThrowsPanel();
		savingThrowsPanel.setBounds(((int)panel.getPreferredSize().getWidth()-175)/2, 0, 175, 200);
		panel.add(savingThrowsPanel);
		CombatStatsPanel combatStatsPanel = new CombatStatsPanel();
		
		combatStatsPanel.setBounds(0, 205, 325, 440);
		panel.add(combatStatsPanel);
	}
}
